package com.whfp.coky.ui.task.model

import android.os.Parcel
import android.os.Parcelable

/**
 *
 * 设备验证 实体类
 * created by coky on 2022/3/28
 */
class CheckDeviceBean() :Parcelable{
    //类型
    var refType: String? = null

    //设备MAC地址
    var deviceMac: String? = null

    //设备编号
    var deviceCode: String? = null

    //行业
    var refTrade: String? = null

    constructor(parcel: Parcel) : this() {
        refType = parcel.readString()
        deviceMac = parcel.readString()
        deviceCode = parcel.readString()
        refTrade = parcel.readString()
    }

    override fun writeToParcel(parcel: Parcel, flags: Int) {
        parcel.writeString(refType)
        parcel.writeString(deviceMac)
        parcel.writeString(deviceCode)
        parcel.writeString(refTrade)
    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<CheckDeviceBean> {
        override fun createFromParcel(parcel: Parcel): CheckDeviceBean {
            return CheckDeviceBean(parcel)
        }

        override fun newArray(size: Int): Array<CheckDeviceBean?> {
            return arrayOfNulls(size)
        }
    }
}